package com.syf.controller.RJController;

import com.syf.domain.store.BsBigClass;
import com.syf.domain.store.BsUser;
import com.syf.model.R;
import com.syf.service.BsBigClassService;
import com.syf.service.BsUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author syf
 * @create 2022-02-08 9:22
 */
@RestController
@RequestMapping("/bsUser")
@Api(tags = "用户")
public class BsUserController {

    @Autowired
    private BsUserService bsUserService;


    @PostMapping("/before/userLogin")
    @CrossOrigin
    @ApiOperation(value = "用户 登录/注册")
    public R userLogin(@RequestBody BsUser bsUser){
        return bsUserService.login(bsUser);
    }

}
